package com.ethink.order.api.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 销售需求单 更新请求对象
 *
 * @author default
 * @date 2022-10-31
 */
@Data
public class SaleDemandOrderUpdateRequest {

    @NotNull
    @Schema(description ="主键")
    private Long id;

    @Schema(description ="订单来源")
    private String saleChannel;

    @Schema(description = "订单来源下级")
    private String saleSubChannel;

    @Schema(description ="枚举 订单状态:1-草稿(s1)|2-需求确认(s2)|3-预供提报(s3)|4-锁单(s4)|5-OA审批(s5)|6-完成(s6)")
    private Integer orderStatus;

    @Schema(description ="货币编码")
    private String currencyCode;

    @Schema(description ="货币名称")
    private String currencyName;

    @Schema(description ="汇率")
    private BigDecimal exchangeRate;

    @Schema(description ="PO单号")
    private String poOrderNo;

    @Schema(description = "标签")
    private String tag;

    @Schema(description = "备注")
    private String remark;

    @Schema(description ="下单日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private Date beginTime;

    @Schema(description = "详情内容")
    private List<SaleDemandOrderDetailAddRequest> item;

    @Schema(description = "默认税率",hidden = true)
    private BigDecimal defaultTaxRate;
}
